my_str = "万过薪月，员序程马黑来，nohtyP学"
# 得到“黑马程序员”
result1 = my_str[9:4:-1]
print(result1)
print("-----------------------------------------")

result2 = my_str[::-1]
new_list = result2.split("，")
new_str = new_list[1].replace("来", "")
print(new_str)